'use strict';

module.exports = app => {
  const { STRING, INTEGER, DATE } = app.Sequelize;

  const Delivery = app.model.define('delivery', {
    id: { type: INTEGER, primaryKey: true, autoIncrement: true },
    did: STRING,
    company: STRING,
    type: STRING,
    name: STRING,
    contact: STRING,
    phone: STRING,
    address: STRING,
    mark: STRING,
    registrar: STRING,
    time: DATE,
  });

  return Delivery;
};
